package GUI;

public class PasTransport extends javax.swing.JFrame {

	private static final long serialVersionUID = 1L;
	
	/** Crée une instance de PasTransport */
    public PasTransport() {
        initComponents();
        this.setLocationRelativeTo(this.getParent());
    }
    
    /**
	 * Initialisation des composants d'AWT.
	 */	
    private void initComponents() {

        jLabel_phrase = new javax.swing.JLabel();
        jButton_Retour = new javax.swing.JButton();
        jButton_Menu = new javax.swing.JButton();
        jButton_Deco = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jButton_quitter = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel_phrase.setText("Pas de transport correspondant");

        jButton_Retour.setText("Retour");
        jButton_Retour.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_RetourActionPerformed(evt);
            }
        });

        jButton_Menu.setText("Menu");
        jButton_Menu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_MenuActionPerformed(evt);
            }
        });

        jButton_Deco.setText("Déconnexion");
        jButton_Deco.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_DecoActionPerformed(evt);
            }
        });

        jLabel1.setText("à cette date et à ces villes.");

        jButton_quitter.setText("Quitter");
        jButton_quitter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_quitterActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(150, 150, 150)
                .addComponent(jLabel_phrase)
                .addContainerGap(173, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addGap(177, 177, 177)
                .addComponent(jLabel1)
                .addContainerGap(186, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(177, 177, 177)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jButton_quitter, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE)
                    .addComponent(jButton_Deco, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE)
                    .addComponent(jButton_Menu, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE)
                    .addComponent(jButton_Retour, javax.swing.GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE))
                .addGap(198, 198, 198))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(48, 48, 48)
                .addComponent(jLabel_phrase, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)
                .addComponent(jButton_Retour)
                .addGap(18, 18, 18)
                .addComponent(jButton_Menu)
                .addGap(18, 18, 18)
                .addComponent(jButton_Deco)
                .addGap(18, 18, 18)
                .addComponent(jButton_quitter)
                .addGap(44, 44, 44))
        );

        pack();
    }

    private void jButton_RetourActionPerformed(java.awt.event.ActionEvent evt) {                                               
        Etape11 e1 = new Etape11();
        this.setVisible(false);
        e1.setVisible(true);       
    }                                              

    private void jButton_MenuActionPerformed(java.awt.event.ActionEvent evt) {                                             
        Utilisateur u = new Utilisateur();
        this.setVisible(false);
        u.setVisible(true);
        
    }                                            

    private void jButton_DecoActionPerformed(java.awt.event.ActionEvent evt) {
       Accueil ac = new Accueil();
       this.setVisible(false);
       ac.setVisible(true);
       this.dispose();
    }

    private void jButton_quitterActionPerformed(java.awt.event.ActionEvent evt) {
        this.setVisible(false);
        this.dispose();
    }

    

    private javax.swing.JButton jButton_Deco;
    private javax.swing.JButton jButton_Menu;
    private javax.swing.JButton jButton_Retour;
    private javax.swing.JButton jButton_quitter;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel_phrase;

    
}
